﻿namespace NC.Data
{
   public class SubscriptionRepository
   {

       private readonly NEPALICORNEREntities _ncEntities;

       public SubscriptionRepository()
       {
           _ncEntities = new NEPALICORNEREntities();
       }

       public Subscription SaveSubscription(Subscription dSubscription)
       {
           _ncEntities.Subscriptions.Add(dSubscription);
           _ncEntities.SaveChanges();
           return dSubscription;
       }
    }
}
